#基础镜像  docker build -t job/e_job:v1 .
FROM openjdk:8u342-jdk
MAINTAINER keyong
RUN echo "Asia/Shanghai" > /etc/timezone
EXPOSE 8008
ADD target/service-api.jar /app/app.jar
WORKDIR /app
ENTRYPOINT ["sh", "-c", "java ${JAVA_OPTS} -XX:+UseG1GC -XshowSettings:vm -jar app.jar --spring.profiles.active=${ACTIVE}"]